#include <string>
#include <iostream>
#include <algorithm>

using namespace std;

bool pr(int x){
    int f1ag  = 0;
    for (int i = 2; i<x; i++){
        if (x % i ==0){
            flag = 1; 
        }
    }
    if (flag == 0){
        return true;
    }
    else {
        return false;
    }
}

int main ()
{string a, a1 ='';
    int c=0, k = 0, m = 0;
    string dig[10] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};

getline(cin,s);

for (int i = 0 i<s.length(); i++){
    if (s[i] != ''){
        s1 += s[i];
        
    }
    else{
        sl[k] = s1
        s1 = '';
        k++;
    }
    sl[2] = s1;
}

    if (sl[0] == "zero"){
        cout << "Wrong input";
    }
    
    else{
        fot (int i=0; i<3; i++){
            if (find(dig, dig+10, sl[i])){
                m++
            }
        }
            if (m !=3){
                cout<<"Wrong input";
            }
            
        int d = 0;
        for (int i=0; i<)
            }
            }
    
